package com.aaa.sso.fegin;

import com.aaa.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: his-open-parent
 * @description:
 * @author: 闫克起2
 * @create: 2023-03-20 10:12
 **/
@FeignClient(value = "his-open-system")
public interface UserFeign {
    //服务与服务之间的调用返回的类型实体类。  前端调用返回Result
    @GetMapping("/system/user/getByUsername/{username}")
    public User getByUsername(@PathVariable String username);
}
